<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Index/css/plan/plan_details.css" media="screen" type="text/css" />
    <!--<link href="/Public/Index/css/main.css" rel="stylesheet" />--> 
    <!--<link rel="stylesheet" type="text/css" href="/Public/Index/css/plan_css.css">-->
    <style>
        .detail-content{margin: 0 5%}
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="javascript:history.go(-2)">返回</a>
                    </div>
                </blockquote>
                <article class="page-container" style="position:relative;">
                    <div class="detail-content">
                        <if condition="$plan['type'] != 1">
                            <h2>{$plan.name}</h2>
                        </if>
                        <if condition="$plan['detail'] neq null">
                            <div class="plan_details">
                                <div class="write">
                                    <span class="n1">我的进度日志</span>
                                </div>
                                <foreach name='plan.detail' item='detail'>
                                    <div class="list_det cd-timeline-block">
                                        <dl>
                                            <dt class="det1 title_1"><img src="/Public/Index/img/icon_0.svg" />{$detail.write_time}</dt>
                                            <dd class="det1 pointer delDetail" style="color: #459EE0;
                                                " data-url="{:U('delDetail',array('id'=>$detail['detail_id']))}"><span><i class="w1" style="font-style:normal;font-size: 13px;">&#xe658;</i> 删除</span></dd>
                                        </dl>
                                        <dl>
                                            <dt class="det3" style="text-align: left">             
                                                <span class="det_nr">{$detail.progress|htmlspecialchars_decode}</span>
                                            </dt>
                                        </dl>
                                        <dl class="det2">
                                            <dt class="name">{$detail['type_flag']?'批注':'进度'}</dt>
                                        </dl>
                                        <dl class="det4">
                                            <if condition="$detail['location'] neq null">
                                                <i class="address">&#xe61a;</i><span>{$detail.location}</span>
                                            </if>
                                        </dl>
                                    </div>
                                </foreach>
                            </div>
                        </if>
                    </div>
                </article>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/plan.js"></script>  
    <script type="text/javascript" src="/Public/Admin/js/common.js" ></script>
    <script type="text/javascript">
        $(initSchedule())
    </script>
</block>